<template>
    <div class="body">
        <div>
            <i class="iconfont" :class="$route.query.state == 1?'icon-caozuochenggong success':'icon-guanbi1 err'"></i>
            <p>{{$route.query.state == 1?'订单支付成功':'订单支付失败'}}</p>
        </div>
        <van-button color="#3DCEB9" round @click="()=>{this.$router.push('/')}">返回首页</van-button>
    </div>
</template>
<script>
export default {
    
}
</script>
<style lang="scss" scoped>
    $green:#3DCEB9;
    $white:#fff;
    $red:#FF5245;
    $gray:#9B9B9B;
    .body{
        width: 50%;
        height: calc(100vh - 10rem);
        background: $white;
        line-height: 4rem;
        font-size: 1rem;
        margin: auto;
        display: flex;
        flex-direction: column;
        text-align: center;
        justify-content: space-around;
        .iconfont{
            font-size: 6rem;
        }
        .err{
            color: $red;
        }
        .success{
            color: $green;
        }
    }
</style>